package com.mes.cloud.api.dto.request.product;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * 产品单位
 * 
 * @author xy
 * @version 2019-08-23 17:43:03
 * @email yuan.xue3@pactera.com
 */
@Data
public class ProductUnitAddRequest implements Serializable{
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键", required = false)
    private String id;

    @ApiModelProperty(value = "产品ID", required = true)
    @NotNull(message = "productId不能为空")
    private String productId;

    @ApiModelProperty(value = "产品单位", required = true)
    @NotNull(message = "unit不能为空")
    private String unit;

    @ApiModelProperty(value = "单位类型(基本类型)", required = false)
    private String type;

    @ApiModelProperty(value = "换算比", required = true)
    @NotNull(message = "conversionRatio不能为空")
    private String conversionRatio;
}
